//------------------------------------------------------------------------------
// <copyright file="Stature.cpp" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------


#include "pch.h"
#include "Stature.h"

namespace CppDemo
{
	Stature::Stature()
	{
		height = 0;
		weight = 0;
	}

	Stature::Stature(RpcArchive^ archive) 
	{
		height = archive->GetNamedWordValue(L"height");
		weight = archive->GetNamedWordValue(L"weight");
	}

	RpcArchive^ Stature::ToRpcArchive()
	{
		RpcArchive^ result = ref new RpcArchive();
		result->SetNamedWordValue(L"height", height);
		result->SetNamedWordValue(L"weight", weight);
		return result;
	}
}